Skip to content

feat(suggest-only): overnight runs log to decisions.md, do not write to targets - #9

Closed
jhpritch-dev wants to merge 74 commits into
thirdlayerinc:mainfrom
jhpritch-dev:claude/friendly-bouman-40b000
Closed

jhpritch-dev wants to merge 74 commits into
thirdlayerinc:mainfrom
jhpritch-dev:claude/friendly-bouman-40b000

Conversation

@jhpritch-dev

Copy link
Copy Markdown

Summary

  • Add --suggest-only CLI flag to bifrost_cycle.py. When set, accepted cycles still run the full pipeline (proposer → executor → evaluator → rollback guard → Block-4 gates) to validate the change is safe, then restore the target file and log a SUGGESTED entry with full unified-diff to decisions_*.md.
  • overnight_run.py now always passes --suggest-only so tonight's 2am run accumulates suggestions for human review instead of mutating bifrost-router files.
  • Authorized by 2026-04-24 PM dispatch, BLOCK 1.

Why this design

  • Patches at the two write-acceptance sites (parallel fan-out path ~line 981, legacy single-executor path ~line 1350). Both inject the same restore + diff-log pattern after gates pass, so the suggestion is gate-validated before being recorded.
  • Reuses existing rollback infrastructure (file write → validate → conditionally restore) rather than running gates against a temp file. Simpler, fewer moving parts.
  • Default is False — flag is opt-in. Removing one line in overnight_run.py ("--suggest-only",) returns to apply-mode.

Test plan

  • python bifrost_cycle.py --help shows --suggest-only (verified locally)
  • Worktree syntax check (ast.parse) on both files (verified locally)
  • Manual smoke: run one profile with --suggest-only --max-cycles 1; confirm target file unchanged and SUGGESTED entry appears in decisions log
  • Tomorrow morning: review decisions_*.md for SUGGESTED diffs, confirm bifrost-router files untouched

After merging

  1. Merge to main
  2. Enable-ScheduledTask -TaskName "BIFROST-Session-O-AutoAgent" (Bifrost PowerShell)
  3. Verify next run time = ~02:00 tomorrow

🤖 Generated with Claude Code

jhpritch-dev and others added 30 commits April 10, 2026 17:32
…t cycle

- bifrost_cycle.py: standalone 3-agent cycle (no Harbor/agents SDK needed)
  Proposer: bifrost-t2-gemma4 (gemma4:26b) on Forge
  Executor: bifrost-1a-hearth (qwen2.5-coder:7b) on Hearth
  Evaluator: bifrost-t2-gemma4 (gemma4:26b) on Forge
- Uses httpx direct calls to Ollama /v1/chat/completions
- program.md: updated target to agent.py, model names corrected
- decisions.md: first cycle logged (rejected — placeholder code)
- Windows task BIFROST-Session-O-AutoAgent: Ready, daily 2am

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…n test

- Rewrote bifrost_cycle.py from scratch: httpx-only, no SDKs
- Fixed: re.sub lambda replacement (was interpreting \s as backreference)
- Fixed: removed max_tokens -- let models respond at full length
- Fixed: full proposal text used (no structured format parsing)
- Self-improvement test: 2/3 cycles accepted, 0 crashes
- Evaluator correctly identified improvements to smart_apply

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…500s)

- Proposer: bifrost-t2-gemma4 (llama4:scout returns 500 -- Forge VRAM contention)
- Added: backup_target() before modifications
- Added: propose() with retry on empty/short response
- Added: log_run_summary() with acceptance rate
- Fixed: log_decision signature (evaluation before accepted)
- Fixed: strip_fences patched by agent (re.search + re.DOTALL)
- 5-cycle test: 2/5 accepted, 0 crashes, retry fired on all cycles

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… — 3/5 accepted

Config: mistral-small3.1:24b (Mistral/EU) proposer on Bifrost,
  bifrost-t1b (gemma3:12b Google/US) executor on Bifrost,
  bifrost-t2-gemma4 (gemma4:26b Google/US) evaluator on Forge.

llama4:scout OOM on Forge (34.6GB needed, 28.2GB available).
Using gemma4:26b evaluator instead — fits in Forge memory.

5-cycle test: 3/5 accepted, 0 crashes.
Cycle 2: retry with exponential backoff ACCEPTED
Cycle 3: JSON decode error handling ACCEPTED
Cycle 4: configurable timeout parameter ACCEPTED
Cycle 5: async refactor correctly REJECTED (breaking change)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…cepted

llama4:scout cannot load on Forge (30GB system RAM, scout needs 34.6GB).
Even after offloading gemma4, system memory insufficient.
Keeping gemma4:26b as evaluator -- DECISIONS_NEEDED.md updated.

Config: mistral-small3.1:24b proposer, bifrost-t1b executor, gemma4 evaluator.
Fixed call_llm (self-modification from round 3 broke it with requests import).

5-cycle: 2/5 accepted (retry backoff, AST smart_apply), 0 crashes.
Evaluator correctly rejected 2 breaking changes (async in sync, wrong schema).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Scout via Lemonade: downloaded (59GB) but corrupt first attempt.
User re-downloaded. Lemonade loads via Vulkan backend (slow cold start).
Tested with gemma4:26b evaluator for all 15 cycles.

Run 1: 4/5 accepted (error handling, log_decision, propose, run_cycle)
Run 2: 4/5 accepted (retry logic, smart_apply safety, error granularity, run_cycle)
Run 3: 0/5 (evaluator correctly rejected all -- executor couldn't implement
  helper function refactors without missing call-site updates)

call_llm protected with DO NOT MODIFY + smart_apply guard against self-modification.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Config: executor upgraded gemma3:12b -> gemma4:26b on Forge
Target: autopilot_graph.py (1419 lines, fresh improvement surface)
Scout ROCm: config set but 59GB load crashed Forge (needs hard reboot)
Test run: NOT RUN (Forge hung)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…opilot_graph, 3/5 accepted

Fixed: proposer/executor prompts truncate target_code to 8000 chars (was unlimited).
autopilot_graph.py (61KB) now works — proposer completes in ~100s instead of timing out.

5-cycle test: 3/5 accepted (error handling, cap check, retry backoff), 0 crashes.
Evaluator correctly rejected: incomplete code (truncated), concurrency bottleneck, typos.

bartowski Q3_K_S scout GGUF downloading on Forge (49.8GB, nohup background).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…xists with gemma4

Three-family config achieved:
  Proposer: mistral-small3.1:24b (Mistral/EU) on Bifrost :11434
  Executor: bifrost-t2-gemma4 (Google/US gemma4:26b) on Forge :11434
  Evaluator: llama4:scout Q3_K_S (Meta/US) on Forge :8005

Scout + gemma4 coexist: 72GB/103GB VRAM used. No model swapping.
Coherence tests: Paris, 56, factorial, FAIL detection -- all correct.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…epted

Swapped executor from gemma4@Forge to bifrost-t1b@Bifrost to fix Forge
contention. Config A (mistral->t1b->gemma4): 3/5 accepted. Scout Q4_K_M
downloaded but cannot fit in Forge VRAM (63GB model, 30GB RAM). Configs
B and C skipped. Config A set as overnight default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Config A (mistral→t1b→gemma4) 5/5 accepted, Config B (mistral→gemma4→scout) 0/5 (GPU contention),
Config C (mistral→t1b→scout) 2/5 (scout evaluator too harsh). RFP test passed (24.5K chars).
Scout Q4_K_M downloaded but OOM'd on Forge — fell back to Q3_K_S for B/C testing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ture context

autopilot_graph.py: replaced raw 'await' with _run_async() bridge in
_run_subtask_with_semaphore (sync def). Removed duplicate imports.

bifrost_cycle.py: added AST-based function signature extraction for
proposer context, async/sync rules in system prompt, rejection feedback
loop (last 3 rejections), increased context window 3K->5K chars.

Test: 3/5 accepted (60%) vs 18.75% baseline (18/96).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Config A (mistral-small3.1:24b / bifrost-t1b / bifrost-t2-gemma4) running
against autopilot_graph.py. Cycle 10 correctly rejected as regression.
Evaluator 0-char responses required retries on cycles 3, 6, 8, 9.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ter every run

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…hmark data

Adds --profile CLI arg to bifrost_cycle.py with three named profiles that
load model/URL/target/rules from profiles.json. Benchmark of 12 models across
3 nodes. Results: coding 1/5, general 3/5 (then 8/15), research 0/5.
RFP regression test PASS (23k chars, 6 subtasks).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…, tune prompt

- Swap /coding evaluator from qwen2.5-coder:14b to bifrost-t2-gemma4 (Forge)
- Add evaluator_prompt_extra field: correctness-focused eval for coding profile
- Add syntax_check() pre-filter: catches truncated executor output before evaluator
- Test result: 1/5 — evaluator now passing valid code (cycle 4), but executor
  truncation at ~2000 chars is the new bottleneck (gate_node too large)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- overnight_run.py: multi-profile rotation (coding/general/research, 5 cycles each, 1hr timeout)
- hearth_deploy/bridge_to_kb.py: Paperless post-consume -> bifrost-kb bridge
- hearth_deploy/docker_compose_patch.md: deployment instructions for Hearth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…r, context tuning, warmup/cooldown

Key fixes merged from worktree sessions:
- Fix objective bug: profile.get("system_rules") → profile.get("objective")
- Add proper objective fields to all profiles (simple changes focus)
- Swap executor from bifrost-t1b to gemma4:e4b for all profiles
- Expand code windows: proposer 5K→10K, executor 6K→10K, evaluator 4K→12K
- Add diversity nudge to proposer ("pick a DIFFERENT function each time")
- Fix rejection feedback: capture 3 lines (200 chars) instead of 1 line
- Strip prose before function definitions in executor output
- Add apply_diff() for SEARCH/REPLACE block support (with fallback)
- Wire temperature from profiles.json into call_llm
- overnight_run.py: warmup pings, 30s cooldown between profiles, run headers

Results: coding 3/3 (100%), general 2/3 (67%), research 2/3 (67%)
Previously: coding 20%, general 55%, research 0%

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…rotation, worktree check, size guard

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
After pk_sync, stages and commits modified target files in bifrost-router
and decisions/logs in autoagent. Also writes structured overnight_log.txt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… qwen3:30b for /coding

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…mparison

Infrastructure:
- Installed llama.cpp b8799 with Vulkan backend on Hearth (192.168.2.4:11437)
- Scheduled-task launcher (run_server.bat via schtasks) survives SSH disconnect
- Downloaded Qwen2.5-Coder-7B Q4_K_M GGUF but hit token-degeneration bug
  (same issue with both Qwen-official and bartowski quants — llama.cpp Vulkan
  build produces "Hello????????" for Qwen2.5 on b8799)
- Pulled qwen3:30b on Forge (18 GB) as new evaluator candidate
- Fell back to gemma4:e4b on Bifrost per predefined fallback plan

Training runs (all against D:\Projects\bifrost-router\autopilot_graph.py):
- /general final  (mistral-small / gemma4:e4b / bifrost-t2-gemma4):  5/5
- /coding fallback (mistral-small / gemma4:e4b / bifrost-t2-gemma4): 2/5
- /coding qwen3eval (mistral-small / gemma4:e4b / qwen3:30b):        1/3

Evaluator comparison: bifrost-t2-gemma4 is the winner — faster turnaround
(~30s vs multi-minute qwen3 waits), no empty-response retries, and equal
or better accept rate on coding workloads. qwen3:30b showed silent empty
responses on the cycle 2 evaluator call and fell back with no result.

Target file integrity preserved across all runs: 1491 lines, 29 unique
symbols, no duplicates, syntax OK. File grew by 40 lines vs pre-training
baseline (1451) from accepted changes in /general + /coding runs.

Active /coding config reverted to gemma4 eval (the winner). All decision
logs + run transcripts included under profiles/CODING/ and profiles/GENERAL/
for future reference.
jhpritch-dev and others added 27 commits April 21, 2026 02:36
- overnight_run.py: add _warmup_proposer() with 180s timeout and explicit
  keep_alive=2h; called before each profile's run_profile() to prevent
  cold-load PROPOSER_FAIL (Tuesday incident).
- profiles.json: add CRITICAL rename-prohibition rule to general/research
  system_rules; gemma4:e4b was renaming proposal targets to placeholders
  like process_data/worker_function.

Validation bank (3/3/3 each, direct bifrost_cycle.py — bypasses warmup):
  coding:   0/3 (2 PROPOSER_FAIL, 1 executor 0-char)
  general:  0/3 (2 PROPOSER_FAIL, 1 rename-reject)
  research: 0/3 (3 PROPOSER_FAIL)
Confirms warmup wiring required (call site only in overnight_run.py).

Forge T2.5 swap: llama3.3:70b pulled (42GB) but CANNOT co-reside with T2
on current Forge BIOS memory partition. Ollama requires 46.7 GiB system
RAM but only 29 GiB is available (Ryzen AI Max+ 395 allocates most of
the 128GB unified pool to VRAM). fleet_config.json intentionally NOT
updated per brief Block 5c safety gate.

OLLAMA_NUM_PARALLEL=2 added to Forge override.conf; T2 verified loads
and responds at ~9s under new config.
…ves, structured verdicts

- all profiles: proposer -> mistral-small3.1:24b @ Bifrost, executor -> mistral:7b-instruct-v0.3-q4_0 @ Bifrost
- gemma4:e4b removed from general/research executor (rename-rule capability gap confirmed in 2026-04-21 5/5/5 bank)
- objectives tightened to whitelist 5 safe change types + explicit PROHIBITED list
- coding: rename rule added to system_rules (was only present in general/research)
- general pinned to _is_rfp_task/_build_rfp_dag; research pinned to route_after_execute/_verify_level5/get_cascade/_aio_sandbox_l6 via focus_functions

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Added telegram_notify.py with send_message + format_overnight_summary;
  no-op if TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID are absent.
- Hooked telegram notification into overnight_run.py after pk_sync +
  auto-commit so overnights post their summary automatically.
- Added fleet_bench.py (7-endpoint sequential benchmark) and today's
  fleet_bench.json snapshot (T2-Forge 42.9, T1-Forge 49.4, NPU 35.4,
  T2.5 5.0, T1-Bifrost 27.5 tok/s; T1-Hearth 404; 3-Fast skipped).
- Patched architect.py collect_service_health + render_health_table to
  probe FLM :8003 (NPU, elevated 2026-04-21) and llama-server :11438
  (T2.5) so diagnostic reports reflect the 4-endpoint Forge fleet.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Hearth Ollama pins mistral:latest per fleet_config 1a-hearth active_model;
the previous gemma4:e4b request returned 404 because that tag isn't pulled
on Hearth. Re-ran Hearth slot with mistral:latest -> 8.07 tok/s
(300 tokens / 37.17s).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Drained Bifrost Ollama before bench so T1-Bifrost was the only loaded
model; T1-Bifrost still came in at 11.24 tok/s (gemma4:e4b, 300 tokens /
26.68s) with Ollama ps reporting 61% CPU / 39% GPU split on an 11GB
model / 16GB card. Flag: possible Ollama 0.21.0 regression on RDNA4
(gfx1201) forcing partial CPU spill even with ample free VRAM. Not
critical for tonight.

Clean results:
  T1-Forge (gemma4:e4b)        49.59
  T2-Forge (bifrost-t2-gemma4) 43.73
  NPU-Forge (qwen3:1.7b)       35.23
  T1-Bifrost (gemma4:e4b)      11.24  <- regression
  T1-Hearth (mistral:latest)    7.80
  T2.5-Forge (llama3.3:70b)     4.97

rawmark.io pushes:
  - gemma4:e4b @ bifrost     693d39b (28.7 tok/s via bench.py)
  - mistral:latest @ hearth  cad2e40 (7.9 tok/s via bench.py)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…nement

Adds parallel executor fan-out to bifrost_cycle.py. When a profile
configures executor_fleet, run_cycle dispatches the proposal to all
configured executors concurrently via ThreadPoolExecutor and accepts the
first candidate that passes syntax + structure + evaluator + gates.

The fleet: 3 primary (Bifrost mistral:7b-instruct-v0.3, Hearth mistral:latest,
Forge gemma4:e4b) + 1 two-pass NPU (Forge qwen3:1.7b @ port 8003 refined
by mistral:7b-instruct-v0.3 on Bifrost to correct function names + syntax).

Legacy single-executor path is fully preserved - falls through when
ACTIVE_EXECUTOR_FLEET is empty (backward-compatible with any profile or
invocation that doesn't configure the fleet).

Patch was staged + human-approved per PORTAL COMMAND GATE. Apply script
at L:\temp\apply_parallel_patch.py; staged diff at
L:\temp\pk-upload\bifrost_cycle_parallel_patch.md. Pre-parallel backup
saved as bifrost_cycle.py.pre-parallel-bak.

Today's 4-node parallel fan-out test: 2.95x speedup, zero errors, +0.1%
overhead vs slowest single endpoint.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The -q4_0 suffix isn't a distinct remote tag on Ollama; the bare
mistral:7b-instruct-v0.3 IS the q4_0 build (4.37 GB manifest).
warmup_models() now POSTs a valid tag instead of 404-ing on every
cold start. Actual dispatch path (ACTIVE_EXECUTOR_FLEET) was
already correct since Session O-PARALLEL commit 9fb545e.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…out to per-profile log

Instrumentation-only change to enable evidence-driven triage of
exec-*:syntax rejections seen across all 4 executors in the 2026-04-22
02:00 overnight run. No prompt or executor behavior change.

bifrost_cycle.py: extend the Syntax FAIL log line with the executor's
trust mode (primary vs two_pass) and a 200-char sample of the offending
post-strip_fences output. Lets us distinguish NPU refiner output from
bifrost/hearth/forge-t1 primaries without rerunning.

overnight_run.py: redirect bifrost_cycle subprocess stdout+stderr to
profiles/<PROFILE>/run_<profile>_<stamp>.log via python -u. Prior
capture_output=False lost all per-cycle diagnostics to the void,
making post-mortems impossible.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…soning fallback

Root cause of the widespread exec-*:eval-empty rejections in the
2026-04-22 overnight (7-9 per primary executor per profile, evenly
distributed across bifrost/hearth/forge-t1) is the evaluator, not
any one executor node. The evaluator model bifrost-t2-gemma4 is a
reasoning model whose OpenAI-compat /v1/chat/completions response
separates the trace into `reasoning` (3-7x longer) and `content`.

With max_tokens=1500 the reasoning field consumes the entire budget
on harder candidates, leaving content="" and finish_reason likely
"length". bifrost_cycle's empty-content check at line 819 then flags
the rejection as {label}:eval-empty, even though the model produced
a coherent verdict inside reasoning.

Two-pronged fix:

1. call_llm: when content is empty and reasoning is populated, return
   reasoning and emit a diagnostic line (includes finish_reason + len).
   This preserves the signal for downstream parsing and converts silent
   eval-empty into a logged decision.

2. Evaluator call site: bump max_tokens from 1500 -> 4096 so reasoning
   has headroom to finish without starving content.

Validated: patched call_llm still returns "PASS" (4 chars) for a
simple evaluator prompt — fallback path is dormant on happy-path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Appends explicit 'Output raw Python only — no markdown fences' clause
to the refiner_note for each profile's exec-forge-npu two-pass config.
Addresses the qwen3:1.7b P1 fence-leak that caused mistral:7b refiner
to preserve triple-backtick wrappers, producing candidates that failed
ast.parse() before reaching the evaluator.

Prior rate: 15/15 cycles in Session O-PARALLEL + 9/11 cycles in
overnight 04-22 showed exec-forge-npu Syntax FAIL on raw-output fence
wrap. 3-cycle coding validation run post-fix shows NPU candidates now
reach the candidate pool cleanly (cycle 1+2 both produced valid-start
P2 output; remaining rejects are refiner-truncation class, not fence
class).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…crashes

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…s — surfaces NameError/ImportError diagnostics

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…before/after each profile (P3 Option B from 4/23 dispatch)
…events single hung call from exhausting 60min profile cap (root cause of 4/24 CODING TIMEOUT)
…-string close fences + trailing prose that regex-only stripping missed (root cause of NPU 0/19 wins overnight 4/24)
…ines 645-656 — addresses 4/24 dominant rejection pattern (renamed/missing/control-flow restructuring)
…t files

Adds `--suggest-only` flag to bifrost_cycle.py (default off). When set,
accepted cycles run the full pipeline (proposer -> executor -> evaluator
-> rollback guard -> Block-4 gates) so the suggestion is validated end-
to-end, but on success the target file is restored to its pre-cycle
content and a SUGGESTED entry with full unified-diff is appended to
decisions_*.md. Rejected cycles unchanged.

overnight_run.py now passes --suggest-only on every profile invocation.
Tonight's 2am run accumulates SUGGESTED diffs in decisions_*.md for
human morning review instead of mutating bifrost-router files.

Authorized by 2026-04-24 PM dispatch (BLOCK 1).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jhpritch-dev

Copy link
Copy Markdown
Author

Wrong base repo — re-opening against jhpritch-dev/autoagent per project convention.

ijlu added a commit to ijlu/autoagent that referenced this pull request Apr 25, 2026
…egression tests

Latent bug in bot/signals/ensemble.py: a single source that sat in N
correlated groups (e.g. `fred` is in cpi/fed/nfp/gdp) was counted N times
toward n_effective, inflating the directional edge-threshold tier
(5%/7%/10% scaling). Replaced with `claim by first matching group`
semantics: a source contributes 1.0 to the first group that owns it and
0 to subsequent groups. Verified monotone — new n ≤ old n — so the fix
can only tighten the threshold, never loosen it.

Backtest replay against 521 sourced rows in opportunity_log on the VPS
DB: every row was `ensemble(fred)` (economics families). OLD impl
returned n=4 → 5% tier; NEW returns n=1 → 10% tier. Zero historical
flips because all rows were MM (which doesn't gate on n_effective) and
no directional decisions exist in the captured window — so the fix is
forward-looking insurance for when directional goes live.

Also pins the rest of the Known Bug Patterns watchlist (CLAUDE.md) with
explicit regression tests:

  #5  fixed-point parsing — tests/test_fixed_point_parsing.py
  #4  inventory-zero-without-settlement — tests/test_inventory_zero_settlement_only.py
  thirdlayerinc#8  Tomorrow.io >7-day horizon — tests/signals/test_tomorrow_horizon.py
       + clamp at bot/signals/sources/weather.py
  thirdlayerinc#9  correlated double-count — tests/signals/test_correlated_double_count.py
  thirdlayerinc#10 MM spread fee floor — tests/test_mm_spread_fee_floor.py
  thirdlayerinc#12 cache bounded — tests/test_cache_bounded.py
       + TTLCache(maxsize=4096, ttl=3600) replacing unbounded {} in trade.py
  thirdlayerinc#13 fair_value_cents reader handling — tests/test_fair_value_cents_readers.py
       + `# fv-mixed-side-ok` ack markers in trade.py + backtest_comprehensive.py

CLAUDE.md Known Bug Patterns updated with per-pattern test references.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant